class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :username, :null => false, :limit => 20, :default => ""      
      t.string :hashed_password , :null => false,:limit => 64, :default => ""
      t.datetime :last_login_at 
      
      t.timestamps
    end
    
    add_index :users, :username
    
  end

  def self.down
    drop_table :users
  end
end
